Replication of �Identifying Voter Preferences for Politicians' Personal Attributes: A Conjoint Experiment in Japan� (Yusaku Horiuchi, Daniel M. Smith, and Teppei Yamamoto). 
* Description:  Although politicians' personal attributes are an important component of elections and representation, few studies have rigorously investigated which attributes are most relevant in shaping voters' preferences for politicians, or whether these preferences vary across different electoral system contexts. We investigate these questions with a conjoint survey experiment using the case of Japan's mixed-member bicameral system. We find that the attributes preferred by voters are not entirely consistent with the observed attributes of actual politicians. Moreover, voters' preferences do not vary when asked to consider representation under different electoral system contexts, whereas the observed attributes of politicians do vary across these contexts. These findings point to the role of factors beyond voters' sincere preferences, such as parties' recruitment strategies, the effect of electoral rules on the salience of the personal vote, and the availability of different types of politicians, in determining the nature of representation.* Files included in this compressed replication package- _Horiuchi-Smith-Yamamoto-2.Rproj * The .Rproj file for RStudio[folder] data * This folder contains CSV files necessary for replication.
[folder] docs * This folder contains documents relevant to this project.
[folder] figs * This folder contains all figures generated by R scripts.
[folder] funs * This folder contains functions used in R scripts.
[folder] output * This folder contains RData files generated by R scripts.
[folder] packrat * This folder was generated automatically by the packrat package
[folder] src * This folder contains the following R scripts to replicate all results

- 10_actual-preprocess.R
- 11_actual-plots.R
- 20_conjoint-preprocess.R
- 21_conjoint-analysis.R
- 22_conjoint-analysis-additional.R
* Programs used to verify replication: 
- R 3.5.0
- Install and load the following packages:

plyr 1.8.4
ggplot2 2.2.1
grid 3.5.0
gridExtra 2.3
corrplot 0.84
ebal 0.1-6
cjoint 2.0.6
gtable 0.2.0
survey 3.33-2

- For a complete information about packages for R, use the files in the "packrat" folder. See <https://rstudio.github.io/packrat/> for more information. 

* Process of Replication:
(1) Download and uncompress ReplicationPackage file
(2) Install additional packages necessary for this project
(3) Set the working directory, which is the folder with _Horiuchi-Smith-Yamamoto-2.Rproj
(4) Run the R scripts in the following order: 10, 11, 20, 21, 22.

* Correspondence between figures and scripts

Figure 1:
- figs/conjoint/result-rw-all.pdf
- generated by 21_conjoint-analysis.R

Figure 2
- figs/conjoint/diff-rw-upper-dist-pr.pdf
- figs/conjoint/diff-rw-lower-dist-pr.pdf
- generated by 21_conjoint-analysis.R

Figure 3
- figs/conjoint/diffatts-rw-gender.pdf
- generated by 22_conjoint-analysis-additional.R

Figure A1
- figs/mosaic/gender.pdf
- figs/mosaic/age.pdf
- generated by 11_actual-plots.R

Figure A2
- figs/mosaic/assy.pdf
- figs/mosaic/cbcrat.pdf
- generated by 11_actual-plots.R

Figure A3
- figs/mosaic/dynastic.pdf
- figs/mosaic/celeb.pdf
- generated by 11_actual-plots.R

Figure A4
- figs/mosaic/educ.pdf
- figs/mosaic/experience.pdf
- figs/mosaic/party.pdf
- generated by 11_actual-plots.R

Figure A5
- figs/mosaic/sec.pdf
- figs/mosaic/locbur.pdf
- figs/mosaic/busiemp.pdf
- figs/mosaic/busiexec.pd
- figs/mosaic/home.pdf
- generated by 11_actual-plots.R

Figure A6
- figs/correlation/cormat-cands.pdf
- figs/correlation/cormat-MPs.pdf
- generated by 11_actual-plots.R

Figure B1
- figs/screenshot/sampletable2.pdf
- This is a screenshot, not generated by an R script

Figure C1
- figs/conjoint/diffatts-rw-age.pdf
- generated by 22_conjoint-analysis-additional.R

Figure C2
- figs/conjoint/diffatts-rw-celeb.pdf
- generated by 22_conjoint-analysis-additional.R

Figure C3
- figs/conjoint/diffatts-rw-dynasty.pdf
- generated by 22_conjoint-analysis-additional.R

Figure C4
- figs/conjoint/diffatts-rw-LDP.pdf
- generated by 22_conjoint-analysis-additional.R

Figure D1
- figs/conjoint/diff-rw-upper-lower.pdf
- figs/conjoint/diff-rw-dist-pr.pdf
- generated by 21_ conjoint-analysis.R

Figure D2
- figs/conjoint/diff-rw-knowledgeable-upper-lower.pdf
- figs/conjoint/diff-rw-knowledgeable-dist-pr.pdf
- generated by 21_ conjoint-analysis.R

Figure D3
- figs/conjoint/diff-rw-screener-upper-lower.pdf
- figs/conjoint/diff-rw-screener-dist-pr.pdf
- generated by 21_ conjoint-analysis.R

Figure D4
- figs/conjoint/diff-rw-voted-upper-lower.pdf
- figs/conjoint/diff-rw-voted-dist-pr.pdf
- generated by 21_ conjoint-analysis.R


* Most Recent Date of Successful Replication: May 15, 2018
